package PangModel;

import java.awt.*;

/**
 * Created by YILMAZ on 23/4/2015.
 */
public class Animal extends GameObject {
    private int remainingTime;
    public static final int SCORE = 100;
    public static final int ANIMAL_PHOENIX = 1;
    public static final int ANIMAL_SNAIL = 2;
    private int animalType;
    private double waitTime;

    public Animal(int animalType, int waitTime)
    {
        this.animalType = animalType;
        imageID = ImageStore.IMAGE_NULL;
    }

    public  void tick()
    {
        waitTime = waitTime - GameMap.GAME_PACE;

        if(waitTime < 0)
        {
            waitTime = 0;

        }

    }



    public int getAnimalType() {
        return this.animalType;
    }

    public void bounce(int axis)
    {
        if(axis == GameObject.X)
        {
            Point dir = direction;
            setDirection((-1)*dir.getX(),dir.getY());
        }
        else if (axis == GameObject.Y)
        {
            Point dir = direction;
            setDirection(dir.getX(),(-1)*dir.getY());
        }
    }
    //CREATE A PATH
}
